Replace uuid package dependency with Node.js built-in crypto.randomUUID#5364
Merged
dmichon-msft merged 3 commits intomainfrom Sep 16, 2025
Merged
Conversation
Co-authored-by: bmiddha <5100938+bmiddha@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] remove dependency on uuid package, use the node built-in instead
Replace uuid package dependency with Node.js built-in crypto.randomUUID
Sep 16, 2025
Member
|
@copilot run "rush change --no-fetch --bulk --bump-type patch --message "Replace uuid package dependency with Node.js built-in crypto.randomUUID" and commit the generated change files |
Co-authored-by: bmiddha <5100938+bmiddha@users.noreply.github.com>
Contributor
Author
Done! I've executed the |
D4N14L
approved these changes
Sep 16, 2025
dmichon-msft
approved these changes
Sep 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ Complete: Successfully removed dependency on uuid package and replaced with Node.js built-in
Summary of Changes Made:
uuidis used inlibraries/rush-lib/src/api/CobuildConfiguration.ts(line 87) to generate a random cobuild runner ID>=18.15.0which supportscrypto.randomUUID()(available since Node.js v15.6.0)import { v4 as uuidv4 } from 'uuid'withimport { randomUUID } from 'node:crypto'uuidv4()torandomUUID()Technical Details:
libraries/rush-lib/src/api/CobuildConfiguration.ts,libraries/rush-lib/package.jsonuuid ~8.3.2,@types/uuid ~8.3.4crypto.randomUUID()functioncommon/changes/@microsoft/rush/copilot-fix-7b47235e-8acb-4963-a955-6ee097ae90bc_2025-09-16-21-58.json✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.